//
//  MSPasswordView.h
//  MuRenHe
//
//  Created by mls on 2021/5/19.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSUInteger, MSPasswordViewType) {
    MSPasswordViewTypePay,  ///< 支付
    MSPasswordViewTypeSetUp,///< 设置
};

@protocol MSPasswordViewDelegate;
/** *号密码输入 */
@interface MSPasswordView : UIView

@property (nonatomic, copy) NSString *password1;
@property (nonatomic, copy) NSString *password2;
@property (nonatomic, weak) id<MSPasswordViewDelegate> delegate;

- (id)initWithType:(MSPasswordViewType)type;

@end


@protocol MSPasswordViewDelegate <NSObject>

/** 取消 */
- (void)ms_passwordViewDidCancel:(MSPasswordView *)view;
/** 完成 */
- (void)ms_passwordViewDidComplete:(MSPasswordView *)view;
/** 忘记密码 */
- (void)ms_forgetPasswordInPasswordView:(MSPasswordView *)view;

@end

NS_ASSUME_NONNULL_END
